package com.itheima.demo4synchronize_code;

public class test
{
    //线程同步方式1 同步代码块
    public static void main(String[] args) {
        count c = new count("银行卡",100000);
        threadDemo1 t1 = new threadDemo1("小明",c);
        t1.start();
        threadDemo1 t2 = new threadDemo1("小王",c);
        t2.start();
    }
}
